/ Assembly List / LJCNetCommon / HTMLBuilder / Script

Namespace - LJCNetCommon


Parameters
fileName - The script file name.
textState - The current text state values.

Returns

The added <script> element.

Syntax

C#
public String Script(String fileName, TextState textState)

Appends a <script> element.

Example

C#
// Root Method Begin
var textState = new TextState();

// Defaults: IndentCharCount = 2, LineLimit = 80, WrapEnabled = false.
var hb = new HTMLBuilder(textState);

// Example Method:
hb.Script("File.js", textState);
var result = hb.ToString();

// result:
// <script src="File.js"><>

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.